package com.bank.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import java.math.BigDecimal;

@Data
@ApiModel(description = "借贷信息")
public class LoanDTO {
    @ApiModelProperty(value = "账户ID", required = true)
    private Long accountId;

    @ApiModelProperty(value = "真实姓名", required = true)
    private String realName;

    @ApiModelProperty(value = "身份证号", required = true)
    private String IdNumber;

    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @ApiModelProperty(value = "借款金额", required = true)
    @Min(value = 1000, message = "借款金额必须大于等于1000")
    private BigDecimal loan;

    @ApiModelProperty(value = "借款原因", required = false)
    private String remark;
}
